import React from 'react';
import { Router, Route, IndexRoute } from 'dva/router';
import {Integral, Login, App, Show, Performant, } from './routes';

function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Route path="/show" component={Show} />
      <Route path="/login" component={Login} />
      <Route path="/" component={App} >
        <IndexRoute component={Integral}/>
        <Route path="integral" component={Integral} />
      <Route path="performant" component={Performant} />
      </Route>
    </Router>
  );
}

export default RouterConfig;
